package cn.uexpo.lhz.controller.admin;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.uexpo.lhz.common.MqttGateway;

@RestController
@RequestMapping("/mqtt")
public class MqttController {


	@Autowired
	private MqttGateway mqttGateway;
	 
    @RequestMapping("/sendMqtt.do")
    public String sendMqtt(String  sendData,String topic){
        mqttGateway.sendToMqtt(sendData,topic);//world主题
        return "OK";
    }

	
    
}
